package com.ebeijia.mybatis.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ebeijia.mybatis.pojo.HomeSourceInfo;

public interface HomeSourceInfoMapper {

	int deleteByPrimaryKey(String id);

	int insertSelective(HomeSourceInfo record);

	HomeSourceInfo selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(HomeSourceInfo record);

	int updateByPrimaryKey(HomeSourceInfo record);

	HomeSourceInfo selectByParams(
			@Param(value = "params") Map<String, Object> params);

	int deleteByHomeUser(String homeName);
	
	//添加房源信息
	int insert(HomeSourceInfo homeInfo);
	
	//用户销户
	int deleteByUser(String homeUserNo);

	// 根据userId查询所有的房源
	List<HomeSourceInfo> getUserAndHomeById(String userId);

	// 根据房源号查询房源
	HomeSourceInfo getHomeUserNo(String homeUserNo);

	// 查询用水量 调用接口
	List<Map<String, Object>> getWaterList(Map<String, Object> params);

	// 查询消费记录 调用接口
	List<Map<String, Object>> getBalanceList(Map<String, Object> params);
	
	//查询调用余额显示接口 
	 void queryUserInfoByPkg(Map<String, Object> params);


}